//
//  CFMarketPageVC.m
//  CFfuturestalent
//
//  Created by 子yu 刘 on 2018/5/3.
//  Copyright © 2018年 子yu 刘. All rights reserved.
//

#import "CFMarketPageVC.h"
#import "CFMarketListVC.h"

@interface CFMarketPageVC ()

@end

@implementation CFMarketPageVC

- (void)viewDidLoad {
    [super viewDidLoad];

}

- (instancetype)init {
    if (self = [super init]) {
       
    }
    return self;
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder {
    self = [super initWithCoder:aDecoder];
    if (self) {
       
        self.menuViewStyle = WMMenuViewStyleLine;
        self.titleColorNormal = [UIColor colorWithHexString:@"bec8cc"];
        self.titleColorSelected = DEF_COLOR_RED;
        self.progressColor = DEF_COLOR_RED;
        self.progressHeight = 1;
        

    }
    return self;
}


- (NSInteger)numbersOfChildControllersInPageController:(WMPageController *)pageController{
    
    return 10;
}

- (NSString *)pageController:(WMPageController *)pageController titleAtIndex:(NSInteger)index{
    return @"美黄金";
}
-(UIViewController *)pageController:(WMPageController *)pageController viewControllerAtIndex:(NSInteger)index{
    return (CFMarketListVC *)[CFUtility getVC:@"CFMarketListVC" Storyboard:MAEKET];
}

- (CGRect)pageController:(WMPageController *)pageController preferredFrameForContentView:(WMScrollView *)contentView {
    return CGRectMake(0, 50, DEF_SCREEN_WIDTH(), DEF_SCREEN_HEIGHT()-DEF_NAV_HEIGHT()-DEF_TABBAR_HEIGHT()-50);
}

- (CGRect)pageController:(WMPageController *)pageController preferredFrameForMenuView:(WMMenuView *)menuView{
    menuView.backgroundColor = DEF_COLOR_HOMEBGCOLOR;
    return CGRectMake(0, 0, DEF_SCREEN_WIDTH(), 50);
}


@end
